package com.zjut.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zjut.domain.FinalQuestions;
import com.zjut.domain.Paper;
import com.zjut.domain.Questions;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface QuestionsDao extends BaseMapper<Questions> {

    //组卷第一步，找到paper所指定章节内全部题目的所选题型
    List<FinalQuestions> selectQuestions1(@Param("type") String type, @Param("paper") Paper paper);

    List<FinalQuestions> selectQuestions2(@Param("type") String type, @Param("paper") Paper paper);
}
